package com.ecotope.quartz.module.controller;

import com.ecotope.quartz.module.entity.TownAtmosphericStation;
import com.ecotope.quartz.module.service.TownAtmosphericStationService;
import com.ecotope.quartz.module.util.HttpURLConnectionUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.io.IOException;
import java.util.List;

/**
 * @author JK
 */
@RestController
@RequestMapping("/townAtmosphericStation")
public class TownAtmosphericStationController {

    private static final Logger log = LoggerFactory.getLogger(TownAtmosphericStationController.class);

    @Autowired
    private TownAtmosphericStationService townAtmosphericStationService;

    @GetMapping("/list")
    public List<TownAtmosphericStation> list(TownAtmosphericStation townAtmosphericStation) {
        return townAtmosphericStationService.selectList(townAtmosphericStation);
    }

}
